export declare interface IAuth {
  data: number;
  target: number;
  call: number;
}

export type ITimeSpan = 'week' | 'month' | 'year';

export interface ITimeOption {
  label: string;
  value: ITimeSpan;
}

export const timeOptions: ITimeOption[] = [
  { label: '本周', value: 'week' },
  { label: '本月', value: 'month' },
  { label: '本年', value: 'year' },
];

export const timeMap = {
  week: '周',
  month: '月',
  year: '年',
};

/** 发送量 */
export const fslOptions = [
  { label: '行业短信', value: 'hangduan' },
  { label: '靶向短信', value: 'fence' },
];

export const fslColumns: any = [
  { title: '排名', dataIndex: 'serialNumber' },
  { title: '局办名称', dataIndex: 'name' },
  { title: '发送量', dataIndex: 'successNumber' },
  { title: '成功率', dataIndex: 'sendSuccessRate' },
];

/** 智能外呼 */
export const whColumns: any = [
  { title: '排名', dataIndex: 'serialNumber' },
  { title: '局办名称', dataIndex: 'name' },
  { title: '通话时长（分钟）', dataIndex: 'callTalkTime' },
];

/** 费用 */
export const fyColumns: any = [
  { title: '排名', dataIndex: 'serialNumber' },
  { title: '局办名称', dataIndex: 'name' },
  { title: '费用（元）', dataIndex: 'totalCost' },
];
